﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Edit.Master" Inherits="System.Web.Mvc.ViewPage<Langben.DAL.Reserve>" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="Models" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CurentPlace" runat="server">
    修改 Reserve
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <input class="a2 f2" type="submit" value="修改" />
            <input class="a2 f2" type="button" onclick="BackList('Reserve')" value="返回列表" />
        </legend>
        <div class="bigdiv">
            <%: Html.HiddenFor(model => model.RowGuid ) %><%: Html.HiddenFor(model => model.CreateTime ) %><%: Html.HiddenFor(model => model.CreatePerson ) %>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.No) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.No) %>
                <%: Html.ValidationMessageFor(model => model.No) %>
            </div>
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('ApplicantsId','../../Applicants');">
                    <%: Html.LabelFor(model => model.ApplicantsId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkApplicantsId">
                    <%  if (Model != null)
                        {
                            if (null != Model.ApplicantsId)
                            {%>
                    <table id="<%: Model.ApplicantsId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteTable('<%: Model.ApplicantsId %>','ApplicantsId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.Applicants.CreateTime%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.ApplicantsId)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.StartTime) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBox("StartTime", ((Model != null && Model.StartTime != null) ? Model.StartTime.ToString().AsDateTime().ToString("yyyy-MM-dd") : ""), new { style = "width: 244px;", @class="easyui-datebox" })%>
                <%: Html.ValidationMessageFor(model => model.StartTime) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ReserveTime) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ReserveTime, new {  onkeyup = "isInt(this)", @class="text-box single-line" })%>
                <%: Html.ValidationMessageFor(model => model.ReserveTime) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.State) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.State) %>
                <%: Html.ValidationMessageFor(model => model.State) %>
            </div>


            <div class="editor-label">
                <a class="anUnderLine" onclick="showChooseModal('CemeteryId','CemeteryName','../../Cemetery/Choose');">
                    <%: Html.LabelFor(model => model.CemeteryName) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkCemeteryId">
                    <%  if (Model != null)
                        {
                            if (null != Model.CemeteryId)
                            {%>
                    <table id="<%: Model.CemeteryId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除" title="点击删除" onclick="deleteChooseTable('<%: Model.CemeteryId %>','CemeteryId','CemeteryName');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.CemeteryName%>
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
                <%: Html.HiddenFor(model => model.CemeteryName)%>
            </div>
            <div class="editor-label" style="display: none">
                <%: Html.LabelFor(model => model.CemeteryId) %>：
            </div>
            <div class="editor-field" style="display: none">
                <%: Html.EditorFor(model => model.CemeteryId) %>
                <%: Html.ValidationMessageFor(model => model.CemeteryId) %>
            </div>
        </div>
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

    <script type="text/javascript">

        $(function () {


        });


    </script>
</asp:Content>

